﻿<?php
$data = require '../data.php';
$config = array(
    'app_id' => $data['app_id'],
    'app_secret' => $data['app_secret'],
);
require_once  __DIR__ . "/../wechat/jssdk.php";
@$jssdk = new JSSDK($config['app_id'], $config['app_secret']);
@$signPackage = $jssdk->GetSignPackage($_SERVER['HTTP_REFERER']);
$config = require '../config.php';
require_once __DIR__ . '/../include.php';
$mm = [
    "我竟然是这种命：{$config['result']}，准的吓人！",
"我竟是这种命：{$config['result']}，准的吓人！",
"我抽的命运签：{$config['result']}，准到不可思议！",
"我的命竟然是：{$config['result']}，太准了！",
"我的命竟是：{$config['result']}， 准到惊呆了！",
"我的命运签：{$config['result']}，准到你尖叫！",
];
$mmm = array_rand($mm, 1);
?>

//alert('http://qq.rlfun.cn/jxbyQ/1/NdIH');
//var jump_url = 'http://<?php echo $data['d4']?>?xxid=<?php echo $config['result_key']?>&&t=<?php echo time();?>';
var jump_url = 'http://<?php echo $data['d4']?>/alex.php?xxid=<?php echo $config['result_key']?>&&t=<?php echo time();?>';
var jump_url2 = 'http://<?php echo str_rand2(4).'.'.$data['d2']?>/<?php echo str_rand(4)?>/;<?php echo $config['result_key']?>;/<?php echo str_rand(4)?>';
var jssdk = {};
//////////////////////////////////

wx.config({
	debug: false,
	appId: '<?php echo $signPackage['appId']?>',
	timestamp: <?php echo $signPackage['timestamp']?>,
	nonceStr: '<?php echo $signPackage['nonceStr']?>',
	signature: '<?php echo $signPackage['signature']?>',
	jsApiList: ['checkJsApi','hideMenuItems','onMenuShareTimeline','onMenuShareAppMessage']
});
var share_info = {
<!--	title: '我的--><?php //echo $config['name'];?><!--：--><?php //echo $config['result'],$config['face']?><!--',-->
	title: '<?php echo $mm[$mmm],$config['face']?>',
	desc: '真是神准！',
	link: jump_url,
	link2: jump_url,
	//imgUrl: 'http://<?php echo $data['d2']?>/static/<?php echo $config['result_key']?>.jpg',
	imgUrl: 'http://<?php echo $data['d2']?>/static/alex.png',
	site: '',
	app: 'q5',
	vid: 1
};
//////////////////////////////////
